import java.util.Scanner;

public class Answer1 {
    //https://www.nowcoder.com/practice/22948c2cad484e0291350abad86136c3?tpId=37&tqId=21331&ru=/exam/oj
    // 求最小公倍数
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(lcm(a,b));
        }
    }

    public static int lcm(int a,int b){
        return a*b/gcd(a,b);
    }
    public static int gcd(int a,int b){
        if(b == 0) return a;
        return gcd(b,a%b);
    }
}
